package Day20;

public class Text01 {
    public static void main(String[] args) {

    }
}

class PPerson{
    String name;
    int age;

    public PPerson(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public PPerson() {
    }
    public boolean compare(PPerson p){
       return this.name.equals(p.name) && this.age == p.age;
    }
}
